

package com.api.oa.services;

import com.api.oa.model.entity.YQRequest;
import com.api.oa.model.params.YQRequestParams;
import com.api.oa.model.vo.OaOrgTreeVO;
import com.api.oa.model.vo.YQRequestVO;
import com.github.pagehelper.PageInfo;
import java.util.List;

public interface YQRequestService {


    Integer add(YQRequest entity) throws Exception;


    void remove(String id);


    Integer update(YQRequest org) throws Exception;


    PageInfo<YQRequestVO> list(String insCode,String idCard,Integer pageIndex,Integer pageSize);


    /**
     * 身份证查询
     * @param idCard
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<YQRequestVO> queryByIdCardIns(String idCard,Long userId,Long inUserId, Long assUserId,Integer pageIndex,Integer pageSize);

    /**
     * 申请名单
     * @param idCard
     * @param insUserId
     * @param isAss
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<YQRequestVO> queryByIdCardGov(String idCard, Long insUserId, Boolean isAss, Long assUserId, Integer pageIndex, Integer pageSize);



    YQRequestVO one(String id);


    /**
     * 机构评定
     * @param entity
     * @return
     */
    Integer assessmentIns(YQRequestParams entity) throws Exception;


    /**
     * 用户ID查找自己申请的记录
     * @param userId
     * @return
     */
    YQRequest findOneByUserId(Long userId);


    /**
     * 更新坐标
     * @return
     */
    Integer updateLocation(Double lat, Double lng, String id);

    /**
     * 政府申请长护
     * @param entity
     * @return
     */
    Integer requestGov(YQRequest entity) throws Exception;

    /**
     * 病患请求
     * @param insCode
     * @param pageIndex
     * @param pageSize
     * @return
     */
    PageInfo<YQRequest> request(String insCode, Integer pageIndex, Integer pageSize);
}
